package com.ruoyi.system.controller;


import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.system.domain.UserRegister;
import com.ruoyi.system.service.IUserRegisterService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/userRegister")
public class UserRegisterController {

    @Autowired
    private IUserRegisterService userRegisterService;


    @PostMapping
    public AjaxResult addUser(@RequestBody UserRegister userRegister)
    {
        userRegisterService.addUser(userRegister);
        return new AjaxResult();
    }
}
